<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<table class="imgtable">
    
    <thead>
    <tr>
    <th width="100px;">ID</th>
    <th>缩略图</th>
    <th>商品名称</th>
    <th>价格</th>
    <th>库存</th>
    <th>点击次数</th>
    <th>货号</th>
    <!--<th>状态</th>-->
    <th>操作</th>
    </tr>
    </thead>
    
    <tbody>
    <?php foreach ($goods as $key=>$val){?>
    <tr>
    <td class="imgtd"><?php echo $val['gid'];?></td>
    <td ><img src="http://127.0.0.1/vancl_php/<?php echo $val['goods_listimg'];?>" style="margin:0" width="50" height="50" alt="" /></td>
    <td style="padding:5px 0;"><a href="#"><?php echo $val['goods_name'];?></a><p>发布时间：<?php echo date('Y-m-d H:i:s',$val['goods_uptime']);?></p></td>
    <td>商城价: <?php echo $val['shop_price'];?><p>市场价:<span style="display:inline;text-decoration:line-through; "><?php echo $val['goods_market'];?></span></p></td>
    <td><?php echo $val['goods_count'];?></td>
    <td><?php echo $val['goods_click'];?></td>
    <td><?php echo $val['goods_sn'];?></td>
    
    <td>
    	
    	<a href="<?php echo U('GoodsList/index',array('gid'=>$val['gid']));?>" class="hd-btn hd-btn-primary hd-btn-sm" style="display: inline;">库存列表</a> <a href="<?php echo U('Goods/editGoods',array('gid'=>$val['gid']));?>" class="hd-btn hd-btn-success hd-btn-sm" style="display: inline;" >修改</a> <a href="javascript:delGoods(<?php echo $val['gid'];?>)" class="hd-btn hd-btn-danger hd-btn-sm" style="display: inline;" >删除</a></td>
   
    </tr>
     <?php }?>
    
    </tbody>
    
    </table>